package cn.dlc.com.log.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.Date;

/**
 * @author 邓立川
 * @date 2021/1/15 20:59
 * @desc final-transaction-bank的幂等校验表
 */
@Data
@Entity(name = "de_duplication")
@AllArgsConstructor
@NoArgsConstructor
public class Duplication {

    @Id
    @GeneratedValue(generator = "myGenerator")
    @GenericGenerator(name = "myGenerator", strategy = "uuid")
    private String txNo;

    private Date createTime;
}
